mixin preview({img, width, height, left=0, index=1})
  -var {url, width: imgWidth,height:imgHeight} = images[img]
  -var ratio = imgWidth/ imgHeight

  section(style=`width:100%;display:flex;vertical-align:top;overflow-x:auto;box-sizing:border-box;pointer-events:none;line-height:0;font-size:0`)
    section(style=`flex:0 0 100%;display:flex;overflow:hidden;max-width:100%!important;box-sizing:border-box`)
      section(style=`flex:0 0 0%;display:inline-block;vertical-align:bottom;box-sizing:border-box`)
        svg(style=`vertical-align:top`, viewBox=`0 0 404 404`)

      section(style=`vertical-align:top;transform:scale(1,.772951);width:${width};height:${height};margin-left:${left};`)
        img(
        data-ratio=`${ratio}`, data-src=`${url}`, data-type=`png`, data-w=`${imgWidth}`, 
        style=`pointer-events:painted;transform-origin:center top;width:264px!important;height:571.511px!important`, 
        data-original-style=`width: 100%;pointer-events: painted;transform-origin: center top;);`, 
        data-index=`${index}`, src=`${url}`)
